import { NgModule, transition } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

const routerConfig: Routes = [
  { path: '', redirectTo: '/login', pathMatch: 'full' },
  { path: 'login', loadChildren: './login-module/login-module.module#LoginModuleModule' },
  { path: 'back', loadChildren: './back-module/back-module.module#BackModuleModule' },
];

@NgModule({
  imports: [
    RouterModule.forRoot(routerConfig,{
      useHash: true
    })
  ],
  exports: [
    RouterModule
  ]
})
export class AppRouterModule { }